package com.niguang.labour.admin.entity;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 
 * @since 2018-06-10
 */
@TableName("work_clock")
public class WorkClock extends Model<WorkClock> {

    private static final long serialVersionUID = 1L;

    /**
     * 打卡id
     */
	private Long id;
	@TableField("site_id")
	private Long siteId;
	@TableField("sub_id")
	private Long subId;
	@TableField("user_id")
	private Long userId;
    /**
     * 打卡类型,1-上班卡,2-下班卡
     */
	@TableField("clock_type")
	private Integer clockType;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 删除标识
     */
	@TableField("del_flag")
	private Integer delFlag;
    /**
     * 工种 ID
     */
	@TableField("work_type_id")
	private Long workTypeId;
    /**
     * 有效打卡 0.无效,1.有效
     */
	@TableField("valid_flag")
	private Integer validFlag;
    /**
     * 工时是否确认 0-未确认 1-已确认 2-已修改
     */
	@TableField("confirm_flag")
	private Integer confirmFlag;
    /**
     * 推送标识 0--未推送 1--已推送
     */
	@TableField("push_flag")
	private Integer pushFlag;
    /**
     * 设备ID
     */
	@TableField("mac_id")
	private String macId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getSiteId() {
		return siteId;
	}

	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}

	public Long getSubId() {
		return subId;
	}

	public void setSubId(Long subId) {
		this.subId = subId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Integer getClockType() {
		return clockType;
	}

	public void setClockType(Integer clockType) {
		this.clockType = clockType;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}

	public Long getWorkTypeId() {
		return workTypeId;
	}

	public void setWorkTypeId(Long workTypeId) {
		this.workTypeId = workTypeId;
	}

	public Integer getValidFlag() {
		return validFlag;
	}

	public void setValidFlag(Integer validFlag) {
		this.validFlag = validFlag;
	}

	public Integer getConfirmFlag() {
		return confirmFlag;
	}

	public void setConfirmFlag(Integer confirmFlag) {
		this.confirmFlag = confirmFlag;
	}

	public Integer getPushFlag() {
		return pushFlag;
	}

	public void setPushFlag(Integer pushFlag) {
		this.pushFlag = pushFlag;
	}

	public String getMacId() {
		return macId;
	}

	public void setMacId(String macId) {
		this.macId = macId;
	}

	public static final String ID = "id";

	public static final String SITE_ID = "site_id";

	public static final String SUB_ID = "sub_id";

	public static final String USER_ID = "user_id";

	public static final String CLOCK_TYPE = "clock_type";

	public static final String CREATE_TIME = "create_time";

	public static final String DEL_FLAG = "del_flag";

	public static final String WORK_TYPE_ID = "work_type_id";

	public static final String VALID_FLAG = "valid_flag";

	public static final String CONFIRM_FLAG = "confirm_flag";

	public static final String PUSH_FLAG = "push_flag";

	public static final String MAC_ID = "mac_id";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WorkClock{" +
			"id=" + id +
			", siteId=" + siteId +
			", subId=" + subId +
			", userId=" + userId +
			", clockType=" + clockType +
			", createTime=" + createTime +
			", delFlag=" + delFlag +
			", workTypeId=" + workTypeId +
			", validFlag=" + validFlag +
			", confirmFlag=" + confirmFlag +
			", pushFlag=" + pushFlag +
			", macId=" + macId +
			"}";
	}
}
